package foo.bar.wiki.plugins.impl;

import foo.bar.wiki.plugins.CommentListenerPlugin;
import foo.bar.wiki.plugins.PluginException;
import foo.bar.wiki.domain.Comment;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author tmjee
 * @version $Date$ $Id$
 */
public class NoOpCommentListenerPlugin extends AbstractPlugin implements CommentListenerPlugin {

    private static final Log LOG = LogFactory.getLog(NoOpCommentListenerPlugin.class);

    
    public void preCommentCreation(Comment comment) throws PluginException {
        LOG.info("Creating Comment ["+comment.getId()+"]");
    }

    public void postCommentCreation(Comment comment) {
        LOG.info("Comment ["+comment.getId()+"] was created");
    }

    public void preCommentRemoval(Comment comment) throws PluginException {
        LOG.info("Removing comment ["+comment.getId());
    }

    public void postCommentRemoval(Comment comment) {
        LOG.info("Comment ["+comment.getId()+"] was removed");
    }
}
